<template>
    <div class="container">
        <Category title="美食">
            <img slot="center"
                 src="https://qcloud.dpfile.com/pc/FPj0uHDhtvlIgwhfEk0-Lu-bp4Duopj5_GorB8Sxbqe4pKUR4-7HxwbA7VFa8fTK.jpg"
                 alt="">
            <a  class="footer" slot="footer" href="https://www.baidu.com">更多美食</a>
        </Category>
        <Category title="游戏">
            <ul slot="center">
                <li v-for="(game,index) in games" :key="index">{{ game }}</li>
            </ul>
            <div slot="footer" class="footer">
                <a href="https://www.baidu.com">网络游戏</a>
                <a href="https://www.baidu.com">单机游戏</a>
            </div>

        </Category>
        <Category title="电影">
            <video slot="center" controls src="https://www.bilibili.com/36ab7fd5-fedd-43b0-9dcc-dd39b7cc5f8d"></video>
            <template v-slot:footer>
                <div class="footer">
                    <a href="https://www.baidu.com">经典</a>
                    <a href="https://www.baidu.com">热门</a>
                    <a href="https://www.baidu.com">推荐</a>
                </div>
                <h4>欢迎前来观看！</h4>
            </template>

        </Category>
    </div>
</template>

<script>
    import Count from '@/components/Count.vue'

    export default {
        name: 'App',
        components: {Category: Count},
        data() {
            return {
                foods: ['火锅', '牛排', '小龙虾', '牛排'],
                games: ['穿越火线', 'LOL', '超级猫里奥', '贪吃蛇'],
                films: ['《爱你一万年》', '《怎么了》', '《户晨风》', '《霍元甲》'],
            }
        }
    }
</script>

<style scoped>
    .container, .footer {
        display: flex;
        justify-content: space-around;
    }


</style>
